package com.base.logistics.jdl.bean.token;

import java.io.Serializable;

/**
 * <pre>
 * token信息
 * </pre>
 * @since 2021-02-19
 */
public class Token implements Serializable {
    private String clientId;
    private String refreshExpire;
    private String code;
    private String refreshToken;
    private String accessExpire;
    private String sellerId;
    private String accessToken;

    public Token() {
    }

    public String getClientId() {
        return this.clientId;
    }

    public String getRefreshExpire() {
        return this.refreshExpire;
    }

    public String getCode() {
        return this.code;
    }

    public String getRefreshToken() {
        return this.refreshToken;
    }

    public String getAccessExpire() {
        return this.accessExpire;
    }

    public String getSellerId() {
        return this.sellerId;
    }

    public String getAccessToken() {
        return this.accessToken;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public void setRefreshExpire(String refreshExpire) {
        this.refreshExpire = refreshExpire;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public void setRefreshToken(String refreshToken) {
        this.refreshToken = refreshToken;
    }

    public void setAccessExpire(String accessExpire) {
        this.accessExpire = accessExpire;
    }

    public void setSellerId(String sellerId) {
        this.sellerId = sellerId;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof Token)) return false;
        final Token other = (Token) o;
        if (!other.canEqual((Object) this)) return false;
        final Object this$clientId = this.getClientId();
        final Object other$clientId = other.getClientId();
        if (this$clientId == null ? other$clientId != null : !this$clientId.equals(other$clientId)) return false;
        final Object this$refreshExpire = this.getRefreshExpire();
        final Object other$refreshExpire = other.getRefreshExpire();
        if (this$refreshExpire == null ? other$refreshExpire != null : !this$refreshExpire.equals(other$refreshExpire))
            return false;
        final Object this$code = this.getCode();
        final Object other$code = other.getCode();
        if (this$code == null ? other$code != null : !this$code.equals(other$code)) return false;
        final Object this$refreshToken = this.getRefreshToken();
        final Object other$refreshToken = other.getRefreshToken();
        if (this$refreshToken == null ? other$refreshToken != null : !this$refreshToken.equals(other$refreshToken))
            return false;
        final Object this$accessExpire = this.getAccessExpire();
        final Object other$accessExpire = other.getAccessExpire();
        if (this$accessExpire == null ? other$accessExpire != null : !this$accessExpire.equals(other$accessExpire))
            return false;
        final Object this$sellerId = this.getSellerId();
        final Object other$sellerId = other.getSellerId();
        if (this$sellerId == null ? other$sellerId != null : !this$sellerId.equals(other$sellerId)) return false;
        final Object this$accessToken = this.getAccessToken();
        final Object other$accessToken = other.getAccessToken();
        if (this$accessToken == null ? other$accessToken != null : !this$accessToken.equals(other$accessToken))
            return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof Token;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $clientId = this.getClientId();
        result = result * PRIME + ($clientId == null ? 43 : $clientId.hashCode());
        final Object $refreshExpire = this.getRefreshExpire();
        result = result * PRIME + ($refreshExpire == null ? 43 : $refreshExpire.hashCode());
        final Object $code = this.getCode();
        result = result * PRIME + ($code == null ? 43 : $code.hashCode());
        final Object $refreshToken = this.getRefreshToken();
        result = result * PRIME + ($refreshToken == null ? 43 : $refreshToken.hashCode());
        final Object $accessExpire = this.getAccessExpire();
        result = result * PRIME + ($accessExpire == null ? 43 : $accessExpire.hashCode());
        final Object $sellerId = this.getSellerId();
        result = result * PRIME + ($sellerId == null ? 43 : $sellerId.hashCode());
        final Object $accessToken = this.getAccessToken();
        result = result * PRIME + ($accessToken == null ? 43 : $accessToken.hashCode());
        return result;
    }

    public String toString() {
        return "Token(clientId=" + this.getClientId() + ", refreshExpire=" + this.getRefreshExpire() + ", code=" + this.getCode() + ", refreshToken=" + this.getRefreshToken() + ", accessExpire=" + this.getAccessExpire() + ", sellerId=" + this.getSellerId() + ", accessToken=" + this.getAccessToken() + ")";
    }
}
